import request from '@/utils/request'

// 查询请假审核列表
export function listAuditLeave(query) {
  return request({
    url: '/backend/auditLeave/list',
    method: 'get',
    params: query
  })
}

// 获取对应数据的审核记录
export function findListAuditLeave(query) {
  return request({
    url: '/backend/auditLeave/findList',
    method: 'get',
    params: query
  })
}


// 查询请假审核详细
export function getAuditLeave(id) {
  return request({
    url: '/backend/auditLeave/' + id,
    method: 'get'
  })
}

// 新增请假审核
export function addAuditLeave(data) {
  return request({
    url: '/backend/auditLeave',
    method: 'post',
    data: data
  })
}

// 修改请假审核
export function updateAuditLeave(data) {
  return request({
    url: '/backend/auditLeave',
    method: 'put',
    data: data
  })
}

// 删除请假审核
export function delAuditLeave(id) {
  return request({
    url: '/backend/auditLeave/' + id,
    method: 'delete'
  })
}
